package com.rundatop.dao.model;

import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@ToString
@Accessors(chain = true)
@Table(name = "`store`")
public class Store {
    @Id
    @Column(name = "`id`")
    private Integer id;

    @Column(name = "`name`")
    private String name;

    @Column(name = "`provincesId`")
    private Integer provincesid;

    @Column(name = "`cities`")
    private Integer cities;

    @Column(name = "`map`")
    private String map;

    @Column(name = "`address`")
    private String address;

    @Column(name = "`f1`")
    private String f1;

    @Column(name = "`f2`")
    private String f2;

    @Column(name = "`f3`")
    private String f3;

    @Column(name = "`f4`")
    private String f4;
    
    @Transient
    private String distance;
    @Transient
    private double distanceDouble;
    
    

    public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getProvincesid() {
		return provincesid;
	}

	public void setProvincesid(Integer provincesid) {
		this.provincesid = provincesid;
	}

	public Integer getCities() {
		return cities;
	}

	public void setCities(Integer cities) {
		this.cities = cities;
	}

	public String getMap() {
		return map;
	}

	public void setMap(String map) {
		this.map = map;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getF1() {
		return f1;
	}

	public void setF1(String f1) {
		this.f1 = f1;
	}

	public String getF2() {
		return f2;
	}

	public void setF2(String f2) {
		this.f2 = f2;
	}

	public String getF3() {
		return f3;
	}

	public void setF3(String f3) {
		this.f3 = f3;
	}

	public String getF4() {
		return f4;
	}

	public void setF4(String f4) {
		this.f4 = f4;
	}

	public double getDistanceDouble() {
		return distanceDouble;
	}

	public void setDistanceDouble(double distanceDouble) {
		this.distanceDouble = distanceDouble;
	}

	public static final String ID = "id";

    public static final String NAME = "name";

    public static final String PROVINCESID = "provincesid";

    public static final String CITIES = "cities";

    public static final String MAP = "map";

    public static final String ADDRESS = "address";

    public static final String F1 = "f1";

    public static final String F2 = "f2";

    public static final String F3 = "f3";

    public static final String F4 = "f4";
}